import Trie from './index'
import Assert from '@/utils/assets'


export const test = () => {
    const t = new Trie();
    const assert = new Assert();
    

    t.add('cat');
    t.add('cast');
    t.add('abstract');
    t.add('dog')
    t.add('doggy')
    console.log(t)
    
    t.remove('dog')
    console.log(t)

    // assert.type('contains').expect(t.contains('cat')).toBe(true)
    // assert.type('contains').expect(t.contains('cast')).toBe(true)
    // assert.type('contains').expect(t.contains('abstract')).toBe(true)

    // assert.type('prefix').expect(t.startsWith('c')).toBe(true)
    // assert.type('prefix').expect(t.startsWith('o')).toBe(false)
    // assert.type('prefix').expect(t.startsWith('dogg')).toBe(true)

    // assert.type('size').expect(t.size()).toBe(3);
}